<div class="analysis-dialog">
	<div class="dialog-inner">
		<div class="dialog-header">
		ARIMA
		  <span class="icon-bar">
		    <i class="icon remove" ng-click="close()"></i>
		  </span>
		</div>

		<div class="dialog-content curve arima" style="padding-bottom:0;">
		  <table style="width: 100%;">
			  <tbody>
			      <tr>
			        <th class="tableLeft">选变量：</th>
			        <td>
			          <div class="ybl">
			          	<div class="nowYbl" ng-click="showList('.ybl',event)">{{selectRecord.deptName}}<em class="ico-down"></em></div>
			          	<ul>
			          		<li ng-repeat="dept in data.deptVars" ng-click="selectDept(dept.index,dept.name)">{{dept.name}}</li>
			          	</ul>
			          </div>
			        </td>
			      </tr>	     
			      
			      <tr class="attention">
			        <th class="tableLeft">自变量：</th>
			        <td>
			          <div class="zbl">
			          	<label class="checkbox" ng-repeat="indept in data.indeptVars" ng-click="selectIndept(indept.index)" ng-class="{'on':selectRecord.indeptIndex.indexOf(indept.index)!==-1}">{{indept.name}}</label>
			          </div>
			        </td>
			      </tr>	    
			      
			      
			      <tr>
			     	<td colspan="2">
			     		<div class="smooth-params">
			     			<span class="s-p-bt">模型阶段：</span>
			     			<dl>
				     			<dd><span>自回归</span><span>p<input type="number" ng-model="selectRecord.p" /></span><span>sp<input type="number" ng-model="selectRecord.sp" ng-disabled="model_s" /></span></dd>
				     			<dd><span>差分</span><span>d<input type="number" ng-model="selectRecord.d" /></span><span>sd<input type="number" ng-model="selectRecord.sd" ng-disabled="model_s" /></span></dd>
				     			<dd><span>移动平均</span><span>q<input type="number" ng-model="selectRecord.q" /></span><span>sq<input type="number" ng-model="selectRecord.sq" ng-disabled="model_s" /></span></dd>
			     			</dl>
			     		</div>
			     		
			     		<div class="var-change">
			     			<span class="v-c-bt">因变量转换：</span>
			     			<span class="radio" ng-class="{'on':selectRecord.deptTrans == 'NONE'}" ng-click="selectRecord.deptTrans = 'NONE'">默认</span>
			     			<span class="radio" ng-class="{'on':selectRecord.deptTrans == 'SQRT'}" ng-click="selectRecord.deptTrans = 'SQRT'">平方根</span>
			     			<span class="radio" ng-class="{'on':selectRecord.deptTrans == 'LOG'}" ng-click="selectRecord.deptTrans = 'LOG'">自然对数</span>
			     		</div>
			     		<div class="clear"></div>
			     	</td>
			     </tr>
			     
			      
			      
			     <tr>
			     	<th class="tableLeft">范围：</th>
			     	<td>
			     		  <div class="fanwei fanweis">
				          	<input type="text" ng-model="selectRecord.startSectionName" readonly="readonly" placeholder="请选择" ng-click="showList('.fanweis')" />
				          	<ul>
				          		<li ng-repeat="t in data.sampleSections" ng-click="selectBeginTime(t.timeCode,t.name)">{{t.name}}</li>
				          	</ul>
				          </div>
				          <div class="fanwei-gg">——</div>
				          <div class="fanwei fanweie">
				          	<input type="text" ng-model="selectRecord.endSectionName" readonly="readonly" placeholder="请选择" ng-click="showList('.fanweie')" />
				          	<ul>
				          		<li ng-repeat="t in selectRecord.endtime" ng-click="selectEndTime(t.timeCode,t.name)">{{t.name}}</li>
				          	</ul>
				          </div>
				          <div class="clear"></div>
			     	</td>
			     </tr>
			     
			     <tr>
			     	<th class="tableLeft">预测到：</th>
			     	<td>
			     		<div class="forecaste">
			     			<input type="text" ng-model="selectRecord.forecastSectionName" readonly="readonly" placeholder="请选择" ng-click="showList('.forecaste')" />
				          	<ul>
				          		<li ng-repeat="t in selectRecord.pretime" ng-click="selectPreTime(t.timeCode,t.name)">{{t.name}}</li>
				          	</ul>
			     		</div>
			     		<div class="zxsp">
			     			预测区间置信水平
			     			<input type="text" ng-model="selectRecord.fmclx" readonly="readonly" placeholder="90%" ng-click="showList('.zxsp')" />
				          	<ul>
				          		<li value="0.9" ng-click="selectFmcl(0.9,'90%')">90%</li>
				          		<li value="0.95" ng-click="selectFmcl(0.95,'95%')">95%</li>
				          		<li value="0.99" ng-click="selectFmcl(0.99,'99%')">99%</li>
				          	</ul>
			     		</div>
			     		<div class="clear"></div>
			     	</td>
			     </tr>	
			     
			     <tr>
			     	<td colspan="2">
			     		<div class="params-set">
			      			<div class="line"></div>
			      			<span class="params-bt" ng-click="showParams()">统计量设置</span>
			      			<div class="params-set-contents">
				      			<p><label class="checkbox" ng-class="{'on':selectRecord.paraEst!=0}" ng-click="selectRecord.paraEst = !selectRecord.paraEst">参数估计</label></p>
				      			<div class="zxg">
				      				<label class="checkbox" ng-class="{'on':selectRecord.ra!=0}" ng-click="selectRecord.ra = !selectRecord.ra">残差自相关函数</label>
				      				<span class="zhs">最大滞后数<input type="text" ng-class="{'disabled':selectRecord.ra==0}" ng-model="selectRecord.raMaxLag" readonly="readonly" ng-disabled="selectRecord.ra==0" ng-click="showList('.params-set-contents .zxg')" /></span>
				      				<ul>
				      					<li ng-click="selectRaMaxLag(5)">5</li>
				      					<li ng-click="selectRaMaxLag(10)">10</li>
				      					<li ng-click="selectRaMaxLag(15)">15</li>
				      					<li ng-click="selectRaMaxLag(20)">20</li>
				      				</ul>
				      			</div>
				      			
				      			<div class="pxg">
				      				<label class="checkbox" ng-class="{'on':selectRecord.rpca!=0}" ng-click="selectRecord.rpca = !selectRecord.rpca">残差偏自相关函数</label>
				      				<span class="zhs">最大滞后数<input type="text" ng-class="{'disabled':selectRecord.rpca==0}" ng-model="selectRecord.rpcaMaxLag" readonly="readonly" ng-disabled="selectRecord.rpca==0" ng-click="showList('.params-set-contents .pxg')" /></span>
				      				<ul>
				      					<li ng-click="selectRpcaMaxLag(5)">5</li>
				      					<li ng-click="selectRpcaMaxLag(10)">10</li>
				      					<li ng-click="selectRpcaMaxLag(15)">15</li>
				      					<li ng-click="selectRpcaMaxLag(20)">20</li>
				      				</ul>
				      			</div>
			      			</div>
			      		</div>
			     	</td>
			     </tr>      
			    </tbody>
		    </table>
		</div>

		<div class="dialog-bottom">
		  <button class="tiny cancel" ng-click="close();">取消</button>
		  <button class="small confirm"
		    ng-class="{'disabled':startButton() == 0}"
		    ng-click="arimaGo()">确定</button>
		</div>
	</div>
</div>